@echo off
echo --- [UV Env] Applying custom configurations for UV ---
echo CONDA_PREFIX:%CONDA_PREFIX%
set "UV_CACHE_DIR=E:/dev_data/uv/cache"
REM 直接使用 ~dp0 展开结果来构建完整路径
set "LOCAL_UV_TOML=%~dp0uv.toml"

if exist "%LOCAL_UV_TOML%" (
    echo --- [UV Env] Using local uv.toml at %LOCAL_UV_TOML% ---
    set "UV_CONFIG_FILE=%LOCAL_UV_TOML%"
) else (
    echo --- [UV Env] No local uv.toml found, using system default ---
    set "UV_CONFIG_FILE="
)

echo --- [UV Env] Configurations applied. UV_CONFIG_FILE: %UV_CONFIG_FILE% ---
